package com.axxc.jpa.pattendegign.filter;

import java.util.ArrayList;
import java.util.List;

/**
 * @ClassName MaleCriteria
 * @Description //TODO 构造一个男性过滤器
 * @author xxc
 * @data 2018年9月8日下午11:08:14
 * @see {@link http://gitee.com/biuabiu/ }
 */
public class MaleCriteria implements CriteriaFilter {

	@Override
	public List<Person> doFiler(List<Person> personLists) {
		List<Person> maleLists = new ArrayList<>();
		personLists.forEach(e -> {
			if (1 == e.getGender()) {
				maleLists.add(e);
			}
		});
		return maleLists;
	}

}
